//
//  SUserAccountModel.swift
//  SWeiboBoom
//
//  Created by Angus.丶 ShangYang on 16/8/10.
//  Copyright © 2016年 Angus_Shyang. All rights reserved.
//

import UIKit

class SUserAccountModel: NSObject {

    //用户授权的唯一票据
    var access_token:String?
    //access_token 的生命周期,单位是秒数(普通用户过期时间为3天,vip为5年)
    var expires_in:Int = 0
    //授权用户的UID
    var uid:String?
    
    init(dict:[String:AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }

    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
    //重写description
    override var description: String{
        let keys = ["access_token","expires_in","uid"]
        return dictionaryWithValuesForKeys(keys).description
        
    }
   
}
